package org.ipmsg.core;

/**
 * 用户信息
 * @author Vangie
 */
public class Member {

    private String nickName;
    private String host;
    private String address;
    private String sysUser;
    private String group;

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public void setSysUser(String sysUser) {
        this.sysUser = sysUser;
    }

    public void setGroup(String group) {
        this.group = group;
    }

    public String getNickName() {
        return nickName;
    }

    public String getHost() {
        return host;
    }

    public String getAddress() {
        return address;
    }

    public String getSysUser() {
        return sysUser;
    }

    public String getGroup() {
        return group;
    }

    public Member() {
    }

    public String[] toArray() {
        String array[] = new String[5];
        array[0] = nickName;
        array[1] = host;
        array[2] = address;
        array[3] = sysUser;
        array[4] = group;
        return array;
    }

    public String toString() {
        return (new StringBuilder("[")).append(nickName).append(",").append(host).append(",").append(address).append(",").append(sysUser).append(",").append(group).append(",").append("]").toString();
    }
}
